package com.xy.fragment1;

import android.content.Context;
import android.util.Log;

import androidx.lifecycle.Lifecycle;
import androidx.lifecycle.LifecycleObserver;
import androidx.lifecycle.LifecycleOwner;
import androidx.lifecycle.OnLifecycleEvent;

import com.xy.fragment1.util.UILog;

public class LifeComponent implements LifecycleObserver {
    @OnLifecycleEvent(Lifecycle.Event.ON_START)
    public void start(LifecycleOwner source) {
        UILog log = new UILog((Context) source);
        log.info("start:" + source);
    }
}
